package com.shop.mapper;
import com.shop.entity.BulkGoodsDetail;
import com.shop.entity.BulkMerchant;
import com.shop.entity.MerchantMerchant;
import com.shop.entity.SupplierSupplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface SupplierOrderMapper {

    List<BulkMerchant> getBySupplierId(Integer id);

    List<BulkGoodsDetail> getByOrderId(Integer id);

    @Update("update bulk_merchant set status= 1 ,delivery=#{delivery} where id=#{id}")
    void outWarehouse(BulkMerchant bulkMerchant);

    MerchantMerchant getUserInfo(Integer userId);


    int insertSelective(BulkMerchant bulkMerchant);

    int insertDetail(BulkGoodsDetail detail);

    SupplierSupplier getSupplier(Integer supplyId);
}
